#define _CRT_SECURE_NO_WARNINGS 1

#include"SeqList.h"


void TestSeqList1()
{
	SL L;
	SeqListInit(&L);
	SeqListPushBack(&L, 1);
	SeqListPushBack(&L, 2);
	SeqListPushBack(&L, 3);
	SeqListPushBack(&L, 4);
	SeqListPrintf(&L);
	SeqListPushFront(&L, 5);
	SeqListPushFront(&L, 6);
	SeqListPushFront(&L, 7);
	SeqListPrintf(&L);
	SeqListPopBack(&L);
	SeqListPopBack(&L);
	SeqListPrintf(&L);
	SeqListPopFront(&L);
	SeqListPopFront(&L);
	SeqListPrintf(&L);
	SeqListInsert(&L, 0, 3);
	SeqListInsert(&L, 0, 4);
	SeqListInsert(&L, 0, 5);
	SeqListPrintf(&L);
	SeqListDelete(&L, 3);
	SeqListDelete(&L, 3);
	SeqListDelete(&L, 3);
	SeqListPrintf(&L);
	SeqListFind(&L, 5);
	SeqListModity(&L, 0, 4);
	SeqListPrintf(&L);
	SeqListDestory(&L);
}

int main()
{
	TestSeqList1();
	
	return 0;
}